package com.shopcart.repository;


import java.util.Collection;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.core.annotation.RestResource;

import com.shopcart.domain.StoreGoodsCategory;

@RestResource(exported = false)
public interface StoreGoodsCategoryRepository extends CrudRepository<StoreGoodsCategory, String> {

	Collection<StoreGoodsCategory> findByStoreId(String storeId,Sort sort);
	
	Page<StoreGoodsCategory> findByStoreId(String storeId,Pageable p);
}
